//
//  XQChartView.h
//  XQChartDemo
//
//  Created by xq on 2024/6/15.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface XQChartView : UIView

/// 已选点颜色
/// @"#FFFFFF" 十六进制颜色，其他颜色也相同
@property (nonatomic, copy) NSString *selectPointColor;

/// 未选点颜色
@property (nonatomic, copy) NSString *unselectPointColor;

/// 线颜色
@property (nonatomic, copy) NSString *lineColor;

/// 背景颜色
@property (nonatomic, copy) NSString *chartBackgroundColor;

/// 点, Y的值 @[@10.2, @2.3]
@property (nonatomic, copy) NSArray *points;

/// 最小值
@property (nonatomic, assign) CGFloat minY;

/// 最大值
@property (nonatomic, assign) CGFloat maxY;

/// 更新点位置
- (void)refreshChartView;

/// 更新点位置
/// @param points Y的值 @[@10.2, @2.3]
- (void)refreshWithPoints:(NSArray *)points;

/// 选中的点，改变 Y
- (void)selectPointChangeY:(CGFloat)value;

/// 选中的点，改变 Y
- (void)selectPointSele:(CGFloat)value;

@end

NS_ASSUME_NONNULL_END
